// 每个主题特有的设置
.theme-#{$theme-name} {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 14px;
  color: $theme-color-text-primary;
  background-color: $theme-bg-color;

  // 主题文字颜色
  .color-text-primary {
    color: $theme-color-text-primary;
  }
  .color-text-regular {
    color: $theme-color-text-regular;
  }
  .color-text-secondary {
    color: $theme-color-text-secondary;
  }
  .color-text-placeholder {
    color: $theme-color-text-placeholder;
  }

  // 主题边框
  .color-border-1 {
    border-bottom: 1px solid $theme-color-border-1;
  }
  .color-border-2 {
    border-bottom: 1px solid $theme-color-border-2;
  }

  .btn-plain {
    color: $theme-color-text-regular;
    border: 1px solid $theme-color-text-regular;
  }

  // 内容的背景
  .body-background-color {
    background-color: $theme-bg-color;
  }
  .container-background-color {
    background-color: $theme-bg-mask;
  }

  // header头部样式
  .#{$prefix}-header {
    padding: 10px 15px;
    color: $theme-color-text-primary;
    background-color: $theme-bg-color;
    .location {
      font-size: 12px;
      text-align: center;
      color: $theme-color-text-regular !important;
      line-height: 1 !important;
      vertical-align: middle;
    }
    .van-icon {
      color: $theme-color-text-primary;
      line-height: 30px;
      vertical-align:middle;
    }
    .van-button {
      display: block;
      border-radius: 1000px;
      padding: 0 30px;
      color: $theme-color-text-regular;
      border-color: $theme-header-background-color;
      background-color: $theme-header-background-color;
    }
  }

  // 搜素样式
  .#{$prefix}-search {
    width: 100%;
    height: auto;
    left: 0;
    top: 50px;
    padding: 0;
    text-align: left;
    color: $theme-color-text-primary;
    background-color: $theme-bg-color;
    .search-box {
      display: flex;
      box-sizing:border-box;
      position: relative;
      border-radius: 1000px;
      margin: 10px 15px;
      padding: 10px 15px;
      background-color: $theme-bg-mask;
      .left-icon {
        flex: 1;
        line-height:24px;
        vertical-align:middle;
      }
      .input {
        display: inline-block;
        padding-left: 15px;
      }
    }
  }

  // 购物车的模块
  .#{$prefix}-cart-popup {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background-color: $theme-bg-color;
    .popup-box {
      position: relative;
      padding: 15px 15px 0;
      .popup-confirm {
        position: absolute;
        width: 100px;
        height: auto;
        top: 15px;
        right: 15px;
        text-align: right;
        color: $theme-color-text-regular;
      }
      .popup-info {
        padding-bottom: 44px;
        .list {
          margin-bottom: 30px;
          .list-title {
            font-size: 16px;
            margin-bottom: 10px;
          }
          .list-checkbox {
            .van-checkbox {
              padding: 10px 0 ;
              border-bottom: 1px solid $theme-color-border-1;
            }
            .van-checkbox__label {
              color: $theme-card-popup-checkbox__label !important;
            }
            .van-checkbox__icon {
              background-color: $theme-card-popup-checkbox__icon;
              border-color: transparent;
            }
            .van-checkbox__icon--checked {
              background-color: $theme-card-popup-checkbox__icon--checked !important;
            }
          }
        }
      }
      .popup-footer {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 44px;
        line-height: 44px;
        text-align: center;
        color: $color-text-normal;
      }
    }
  }

  // 分类模块
  .#{$prefix}-tabs {
    .van-tabs__wrap {
      background-color: $theme-tabs-header-background-color;
      .van-tab {
        color: $theme-tabs-header-text-color;
      }
      .van-tab--active {
        color: $theme-tabs-header-text-active-color;
      }
      .van-tabs__line {
        background-color: $theme-tabs-header-text-active-color;
      }

    }
    .tabs-item {
      padding: 10px 15px;
      .card {
        background-color: $theme-bg-mask;
        border-radius: 4px;
        box-shadow: 0 2px 15px 0 rgba(0,0,0,.15);
        margin-bottom: 15px;
        .goods-img {
          display: block;
          width: 100%;
          height: 60px;
          border-top-left-radius: 4px;
          border-top-right-radius: 4px;
        }
        .card-box {
          padding: 10px;
          .title {
            margin-bottom: 0;
            font-size: 16px;
            font-weight: bold;
          }
          .info {

          }
        }
      }
    }
  }
}
